package com.csl.xm.demo.dao;

import com.csl.xm.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import javax.transaction.Transactional;

/**
 * <pre>
 * 描述：用户DAO
 * </pre>
 *
 * @类名：com.csl.xm.demo.dao.UserDao
 * @作者： 1410HL0236
 * @创建日期: 2019/11/20 13:26
 */
// 事务处理
@Transactional
public interface UserDao extends PagingAndSortingRepository<User, Long>,JpaSpecificationExecutor<User>,JpaRepository<User,Long> {

  User findById(String id);
}
